package com.cema.manage.project.manage.withdrawalRecord.domain;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 提现记录表 biz_withdrawal_record
 *
 * @author reasahi
 * @date 2024-07-28
 */
@TableName(value = "biz_withdrawal_record")
public class WithdrawalRecord extends Model<WithdrawalRecord> {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Integer id;
    /**
     * 用户ID
     */
    @TableField(value = "us_id")
    private Integer usId;
    /**
     * 提现配置ID
     */
    @TableField(value = "wc_id")
    private Integer wcId;
    /**
     * 用户名
     */
    @TableField(value = "us_nickname")
    private String usNickname;
    /**
     * 收款姓名
     */
    @TableField(value = "wr_name")
    private String wrName;
    /**
     * 收款人手机号码
     */
    @TableField(value = "wr_phone")
    private String wrPhone;
    /**
     * 收款渠道 1：支付宝 2：微信
     */
    @TableField(value = "wr_channel")
    private Integer wrChannel;
    /**
     * 金额
     */
    @TableField(value = "wr_money")
    private Integer wrMoney;
    /**
     * 类型 1金币 2红包
     */
    @TableField(value = "wr_type")
    private Integer wrType;
    /**
     * 变更前金额
     */
    @TableField(value = "wr_before_money")
    private Integer wrBeforeMoney;
    /**
     * 变更后金额
     */
    @TableField(value = "wr_after_money")
    private Integer wrAfterMoney;
    /**
     * 审核状态1审核中 2通过3拒绝
     */
    @TableField(value = "wr_status")
    private Integer wrStatus;
    /**
     * 备注
     */
    @TableField(value = "wr_mark")
    private String wrMark;
    @TableField(value = "wr_order_id")
    private String wrOrderId;
    @TableField(value = "wr_pay_order_id")
    private String wrPayOrderId;
    /**
     * 审核时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
     * 提现时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 拒绝时间
     */
    @TableField(value = "refuse_time")
    private Date refuseTime;

    @TableField(value = "wr_duration_of_use")
    private String wrDurationOfUse;

    @TableField(value = "uv_channel")
    private String uvChannel;

    public String getUvChannel() {
        return uvChannel;
    }

    public void setUvChannel(String uvChannel) {
        this.uvChannel = uvChannel;
    }

    public String getWrDurationOfUse() {
        return wrDurationOfUse;
    }

    public void setWrDurationOfUse(String wrDurationOfUse) {
        this.wrDurationOfUse = wrDurationOfUse;
    }

    /**
     * 设置：主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置：用户ID
     */
    public void setUsId(Integer usId) {
        this.usId = usId;
    }

    /**
     * 获取：用户ID
     */
    public Integer getUsId() {
        return usId;
    }

    /**
     * 设置：用户名
     */
    public void setUsNickname(String usNickname) {
        if (usNickname != null) {
            if (usNickname.trim().isEmpty()) {
                this.usNickname = null;
            } else {
                this.usNickname = usNickname;
            }
        }
    }

    /**
     * 获取：用户名
     */
    public String getUsNickname() {
        return usNickname;
    }

    /**
     * 设置：收款姓名
     */
    public void setWrName(String wrName) {
        if (wrName != null) {
            if (wrName.trim().isEmpty()) {
                this.wrName = null;
            } else {
                this.wrName = wrName;
            }
        }
    }

    /**
     * 获取：收款姓名
     */
    public String getWrName() {
        return wrName;
    }

    /**
     * 设置：收款人手机号码
     */
    public void setWrPhone(String wrPhone) {
        if (wrPhone != null) {
            if (wrPhone.trim().isEmpty()) {
                this.wrPhone = null;
            } else {
                this.wrPhone = wrPhone;
            }
        }
    }

    /**
     * 获取：收款人手机号码
     */
    public String getWrPhone() {
        return wrPhone;
    }

    /**
     * 设置：收款渠道 1：支付宝 2：微信
     */
    public void setWrChannel(Integer wrChannel) {
        this.wrChannel = wrChannel;
    }

    /**
     * 获取：收款渠道 1：支付宝 2：微信
     */
    public Integer getWrChannel() {
        return wrChannel;
    }

    /**
     * 设置：金额
     */
    public void setWrMoney(Integer wrMoney) {
        this.wrMoney = wrMoney;
    }

    /**
     * 获取：金额
     */
    public Integer getWrMoney() {
        return wrMoney;
    }

    /**
     * 设置：类型 1金币 2红包
     */
    public void setWrType(Integer wrType) {
        this.wrType = wrType;
    }

    /**
     * 获取：类型 1金币 2红包
     */
    public Integer getWrType() {
        return wrType;
    }

    /**
     * 设置：变更前金额
     */
    public void setWrBeforeMoney(Integer wrBeforeMoney) {
        this.wrBeforeMoney = wrBeforeMoney;
    }

    /**
     * 获取：变更前金额
     */
    public Integer getWrBeforeMoney() {
        return wrBeforeMoney;
    }

    /**
     * 设置：变更后金额
     */
    public void setWrAfterMoney(Integer wrAfterMoney) {
        this.wrAfterMoney = wrAfterMoney;
    }

    /**
     * 获取：变更后金额
     */
    public Integer getWrAfterMoney() {
        return wrAfterMoney;
    }

    /**
     * 设置：审核状态1审核中 2已打款3拒绝
     */
    public void setWrStatus(Integer wrStatus) {
        this.wrStatus = wrStatus;
    }

    /**
     * 获取：审核状态1审核中 2已打款3拒绝
     */
    public Integer getWrStatus() {
        return wrStatus;
    }

    /**
     * 设置：备注
     */
    public void setWrMark(String wrMark) {
        if (wrMark != null) {
            if (wrMark.trim().isEmpty()) {
                this.wrMark = null;
            } else {
                this.wrMark = wrMark;
            }
        }
    }

    /**
     * 获取：备注
     */
    public String getWrMark() {
        return wrMark;
    }

    /**
     * 设置：审核时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取：审核时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置：提现时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取：提现时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getWrOrderId() {
        return wrOrderId;
    }

    public void setWrOrderId(String wrOrderId) {
        if (StrUtil.isEmpty(wrOrderId)) {
            this.wrOrderId = null;
        } else {
            this.wrOrderId = wrOrderId;
        }
    }

    public String getWrPayOrderId() {
        return wrPayOrderId;
    }

    public void setWrPayOrderId(String wrPayOrderId) {
        this.wrPayOrderId = wrPayOrderId;
    }

    public Integer getWcId() {
        return wcId;
    }

    public void setWcId(Integer wcId) {
        this.wcId = wcId;
    }

    public Date getRefuseTime() {
        return refuseTime;
    }

    public void setRefuseTime(Date refuseTime) {
        this.refuseTime = refuseTime;
    }
}

